<div id="mainMenu"><?// Get main menu items$sql = "SELECT * from transLevels WHERE MainCat = '1' AND InMainMenu = '1' AND Active = '1' ORDER BY DisplayOrder";$result = mysql_db_query($dbname,$sql);$a=0;while ($value = mysql_fetch_assoc($result)) {	$levelID    = $value[LevelID];	$levelName  = stripslashes($value[LevelName]);	$levelPath  = $value[Path];	if ($a==0) { $mainClass = "mainMenuLevel1"; }	else { $mainClass = "mainMenuLevel2"; }	echo "<div class=\"$mainClass\"><a href=\"".$siteURL."$levelPath\">$levelName</a></div>\n";	echo "<ul id=\"mainMenuBG\">\n";
	$sql2 = "SELECT * from transLevels WHERE Path LIKE '$levelPath/%' AND SubCat = '1' AND InMainMenu = '1' ORDER BY DisplayOrder";	$result2 = mysql_db_query($dbname,$sql2);
	while ($value2 = mysql_fetch_assoc($result2)) {		$subCatID   = $value2[LevelID];		$subCatName = stripslashes($value2[LevelName]);		$subCatPath = $value2[Path];
		//echo "<li><a href=\"".$siteURL."$subCatPath\">$subCatName</a></li>\n";
		echo '<li><a href="'.$siteURL.'/resourceProcess.php?c='.$subCatPath.'">'.$subCatName.'</a></li>';	}	echo "</ul>";	$a++;}?><img src="images/menu_footer.gif"><br><br><!-- Left Column Ads --><!-- End Left Column Ads --></div>